<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/1
 * Time: 16:21
 */
namespace application\test;
require_once "user.php";
class update extends user{

    public function __construct(){}

    public function updateDegree($payKey = null){
        echo "支付成功，你的VIP等级提升了";
        $this->life = $this->life - rand(10,100);
        return $this->level++;
    }

    public function __destruct(){}
}